package xin.zhiyin.服务.书;

import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import xin.zhiyin.实体.书Entity;

import java.util.List;

public interface 书Service {
    public void 保存(书Entity 书);
    public 书Entity 根据Id获取书(Long id);
    public List<书Entity> 获取所有书();
    public List<书Entity> 根据categoryId获取书(Long categoryId);
    public List<书Entity> 获取所有书(Example<书Entity> example);
    public Page<书Entity> 分页查询(书Entity 书, Pageable pageable);
    public void 更新(书Entity 书);
    public void 批量删除(List bookIds);


}
